<?php	
/*\
 *
 *
 *
 *
 *
\*/

// Interface function	
function oh_function_adminer($tokens) {		
	global $oh;
	/*oh.framework/modules/adminer/adminer-mod.php?server=localhost&db=users_fbianco1*/
	//$url = oh("url.framework.modules.adminer");
	$url = oh_url_framework();
	//echo oh_debug_div_open();	
	//echo "Adminer<br/>";
	echo '<iframe src="';
	echo $url.'/autologin.php?';
	echo 'host='.$oh["db"]["host"]."&";
	echo 'username='.$oh["db"]["username"]."&";
	echo 'password='.$oh["db"]["password"]."&";
	echo 'db='.$oh["db"]["name"]."&";
	echo '" ';
	echo 'width="100%" ';
	echo 'height="600px" ';
	echo 'frameborder="no" ';
	echo '>';
	echo '</iframe>';
	//echo oh_debug_div_close();	
	return oh_this();
} 

// Option file required
//require_once($oh['path']."/modules/adminer/adminer-mod.php");

// Main class of module
class oh_class_adminer {		
	function oh_class_adminer() {}
}
